#include"list.h"

test1()
{
	Listnode* plist = ListCreat();
	ListPushFont(plist, 1);
	ListPushFont(plist, 2);
	ListPushFont(plist, 3);
	ListPushFont(plist, 4);
	ListPushFont(plist, 5);
	ListPrint(plist);
	ListDestory(plist);
}
void test2()
{
	Listnode* plist = ListCreat();
	ListPushBack(plist, 1);
	ListPushBack(plist, 2);
	ListPushBack(plist, 3);
	ListPushBack(plist, 4);
	ListPushBack(plist, 5);
	ListPrint(plist);
	ListPopBack(plist);
	ListPrint(plist);
	ListPopFront(plist);
	ListPrint(plist);
}
void test3()
{
	Listnode* plist = ListCreat();
	ListPushBack(plist, 1);
	ListPushBack(plist, 2);
	ListPushBack(plist, 3);
	ListPushBack(plist, 4);
	ListPushBack(plist, 5);
	Listnode* pos = ListFind(plist, 3);
	ListInsert(pos, 9);
	ListPrint(plist);

}
int main()
{
	test3();
	return 0;
}